package com.project.naberboard.service;

import java.util.List;

import com.project.naberboard.dao.BoardManager;
import com.project.naberboard.dao.IBoardManager;
import com.project.naberboard.vo.BoardVo;

public class BoardService implements IBoardManager {
	private static BoardService service = new BoardService();
	
	private IBoardManager boardManager;

	private BoardService() {
		boardManager = new BoardManager();
	}

	public static BoardService getInstance() {
		return service;
	}

	public List<BoardVo> getAllBoard() {
		return boardManager.getAllBoard();
	}

	public BoardVo getABoard(String seq) {
		return boardManager.getABoard(seq);
	}

	public int deleteBoard(String seq) {
		return boardManager.deleteBoard(seq);
	}

	public int writeBoard(BoardVo vo) {
		return boardManager.writeBoard(vo);
	}

	public int modifyBoard(BoardVo vo) {
		return boardManager.modifyBoard(vo);
	}

}
